<!--
 * @Author: yaojian66 1327629137@qq.com
 * @Date: 2022-06-30 10:46:52
 * @LastEditors: yaojian66 1327629137@qq.com
 * @LastEditTime: 2022-07-04 14:15:49
 * @FilePath: \geyao\第一百零四题 回文字符串.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!--
 * @Author: yaojian66 1327629137@qq.com
 * @Date: 2022-06-30 10:46:52
 * @LastEditors: yaojian66 1327629137@qq.com
 * @LastEditTime: 2022-06-30 10:54:22
 * @FilePath: \geyao\第一百零四题 回文字符串.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>回文字符串</title>
</head>

<body>
  <script>
    const _isPalindrome = string => {
      // 补全代码
      let oldArr = string.split('').join()
      let newArr = string.split('').reverse().join()
      if (oldArr == newArr) {
        return true
      }
      return false
    }
  </script>
</body>

</html>